<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
 <head>
  <title>CSS Test: Floating Elements</title>
  <link rel="author" href="http://www.w3.org/Style/CSS/Test/CSS1/current/tsack.html" title="CSS1 Test Suite Contributors"/>
  <link rel="author" href="mailto:ian@hixie.ch" title="Ian Hickson"/>
  <style type="text/css"><![CDATA[
   p { color: navy; }
   .control { padding: 1em; }
   .control div { width: 10em; background: navy; color: yellow; }
   .control div.right { margin-left: 5em; text-align: right; }
   .test { width: 15em; margin: 1em; }
   .test div { margin: 0; padding: 0; background: red; }
   .test p { margin: 0; padding: 0; width: 10em; background: navy; color: yellow; }
   .test p.left { float: left; text-align: left; }
   .test p.right { float: right; text-align: right; }
  ]]></style>
  <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#floats" title="9.5 Floats"/>
  <link rel="help" href="http://www.w3.org/TR/CSS21/text.html#alignment-prop" title="16.2 Alignment: the &apos;text-align&apos; property"/>
 </head>
 <body>
  <p>The two patterns below should be identical, with no red present.</p>
  <div class="control">
   <div class="left"> &nbsp;☮ </div>
   <div class="right"> ☮&nbsp; </div>
  </div>
  <div class="test">
   <div>
    <p class="left"> &nbsp;☮ </p>
    <p class="right"> ☮&nbsp; </p>
   </div>
  </div>
 </body>
</html>